class Parent:
    def __init__(self, value):
        self.public_member = value


class Child(Parent):
    def __init__(self, value):
        # super().__init__(value)   # 不出初始化父类成员
        self.public_val = value

    def access_parent_member(self):
        return self.public_member


parent = Parent(10)
child = Child(20)
print(child.access_parent_member())  # 若未重写，则依然可以访问到父类的public_member
